#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
#include <QDeclarativeContext>

#include "clipboard.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));

    QmlApplicationViewer viewer;
    ClipBoard clipboard;
    viewer.setOptimizationFlags(QGraphicsView::DontSavePainterState);
    viewer.setViewportUpdateMode( QGraphicsView::BoundingRectViewportUpdate);

    viewer.rootContext()->setContextProperty("clipboard", &clipboard);
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer.setMainQmlFile(QLatin1String("qml/QVDM/main.qml"));
    viewer.showExpanded();

    return app->exec();
}
